package helloworld.service.administrate;

import helloworld.entity.administrate.Role;
import helloworld.entity.administrate.User;
import helloworld.modules.hibernate.Page;
import helloworld.modules.hibernate.PropertyFilter;

import java.util.List;

public interface IUserService {
	public abstract Page<User> searchUser(final Page<User> page,
			final List<PropertyFilter> filters);

	public abstract List<Role> getAllRole();

	public abstract User getUser(Long id);

	public abstract Role getRole(Long id);

	public abstract void saveUser(User entity,List<Long> checkedRoleIds);

	public abstract void saveRole(Role entity);

	public abstract List<Role> searchRole(List<PropertyFilter> filters);
	
	public abstract List<Long> getRoleIds(Long id);
	
	public abstract User getUserByUsername(String userName);
	
}
